package RPC.utils;

import RPC.client.Response;

public class ResponseUtils {

    public static Response creatSuccessResult(){
        return new Response();
    }

    public  static Response createFailResult(String  code,String msg ){
        Response response=new Response();
        response.setCode(code);
        return response;
    }

    public static Response creatSuccessResult(Object content){
        Response response =new Response();
        response.setResult(content);
        return  response;
    }
}